#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <binder/Parcel.h>
#include <cutils/properties.h>
#include <signal.h>
#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
#include <binder/IServiceManager.h>
#include "SQRService.h"


//#ifndef LOG_TAG
#define LOG_TAG "sqr_service"
//#endif

#include <cutils/log.h>

using namespace android;

int main(int argc, char** argv)
{
	sp<ProcessState> proc(ProcessState::self());
    sp<IServiceManager> sm = defaultServiceManager();
    ALOGI("ServiceManager: %p", sm.get());

	SQRService::instantiate();
	ProcessState::self()->startThreadPool();
	IPCThreadState::self()->joinThreadPool();

	return 0;
}

